import QtQuick 2.0

Rectangle {
    property int borderWidth: 0
    gradient: Gradient {
        GradientStop { position: 0.0; color: "#f1f1f1" }
        GradientStop { position: 1-(borderWidth+radius)/height; color: "#f1f1f1" }
        GradientStop { position: 1.0; color: "#dcdcdc" }
    }

    Rectangle{
        anchors.fill: parent
        anchors.margins: borderWidth
        color: parent.color
        radius: parent.radius - borderWidth
    }
}
